@import "./color.scss";
@import "./button.scss";

* {
  margin: 0;
  padding: 0;
  color: $black;
}
div {
  box-sizing: border-box;
}

.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ellipsis-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.no-scroll-bar {
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
    color: transparent;
  }
}

page > view {
  height: 100vh;
  width: 100vw;
  position: relative;
}

.form-wrap {
  width: 100%;
  min-height: 100%;
  padding: 0 15px;
  > .input-field {
    position: relative;
    border-bottom: 1px solid $light-gray;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    > .label {
      width: 60px;
      border-right: 1px solid transparent;
      &.mark {
        border-right: 1px solid $light-gray;
      }
    }
    > .input-block {
      width: calc(100% - 85px);
    }
  }
  > .info-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    padding: 15px 5px 0;
    height: 40px;
    > .label {
      margin-right: 10px;
    }
    > .input-block {
      border: 1px solid $light-gray;
      width: calc(100% - 130px);
      padding: 0 10px;
    }
  }
  > .input-block-plain {
    border: 1px solid $light-gray;
    width: calc(100% - 20px);
    padding: 5px 10px;
    background-color: lighten($light-gray, 10%);
    border-radius: 4px;
    font-size: 15px;
    margin: 15px 0 50px;
  }
}

.placeholder-part {
  color: $gray;
}

.linear-bg-blue {
  background: linear-gradient(to right, $new-dark-blue, $new-light-blue);
  color: $white;
  padding: 15px;
}

.popup-window {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: left linear 0.3s;
  &.show {
    left: 0;
  }
  > .close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
    width: 20px;
    height: 20px;
    background-color: $white;
    color: $red;
    text-align: center;
    font-size: 20px;
    line-height: 18px;
    border-radius: 50%;
    overflow: hidden;
  }
}

.wallet-banner {
  color: $white;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  > .big-amount {
    height: 36px;
    font-size: 28px;
    line-height: 28px;
  }
  > .small-amount {
    height: 20px;
    font-size: 18px;
    line-height: 18px;
  }
  > .action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    padding: 0 5px;
    > .icon {
      display: inline-flex;
      align-items: center;
      &::before {
        content: "￥";
        display: block;
        height: 16px;
        width: 16px;
        font-size: 12px;
        line-height: 16px;
        background-color: $white;
        color: $dark-blue;
        border-radius: 50%;
        margin-right: 5px;
        text-align: center;
      }
    }
  }
}

// .switch-background-color {
//   background: #ab1e23 !important;
//   border: #ab1e23 !important;
// }
.i-switch-checked {
  background: #ab1e23 !important;
  border: #ab1e23 !important;
}

.btn-action-red {
  background-color: #ea435f;
  color: #fff;
  width: 100%;
  height: 50px;
  line-height: 50px;
  font-size: 16px;
  border: none;
  border-radius: 0;
  position: absolute;
}
canvas {
  z-index: 1;
}